package org.alex.samples.dao;

import java.util.ArrayList;
import java.util.List;

import org.alex.samples.model.ExamUserRole;
import org.alex.samples.model.User;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public class ExamUserRoleDAOImpl extends BaseHibernateDAO<ExamUserRole> implements IExamUserRoleDAO{

	


	@Override
	public List<ExamUserRole> findAll() {
		String hql = " FROM ExamUserRole ";
		List<ExamUserRole> list = new ArrayList<>();
		list = queryForList(hql, null);
		return list;
	}

	@Override
	public ExamUserRole findByUserId(Integer id) {
		// TODO Auto-generated method stub

		return null;
	}

	@Override
	public List<User> findByRoleId(Integer id) {
		// TODO Auto-generated method stub

		return null;
	}

}
